//
//  BKPhotoScrollView.h
//  XPhoto
//
//  Created by baboy on 2019/6/27.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Post.h"

NS_ASSUME_NONNULL_BEGIN

@interface BKPhotoScrollView : UIView
@property(nonatomic, strong) NSArray* photos;
@property(nonatomic, strong) UIPageControl* pageControl;
@property(nonatomic, strong) UIScrollView *scrollView;
@property(nonatomic, assign) BOOL scrollLoop;
@end

typedef NS_ENUM(NSInteger, BKPhotoItemType) {
    BKPhotoItemTypePhoto          = 0,
    BKPhotoItemTypeVideo          = 1
};

#define BKPHOTO_ITEM_TYPE_VIDEO @"video"
#define BKPHOTO_ITEM_TYPE_PHOTO @"photo"

@interface BKPhotoItem : NSObject
@property(nonatomic, strong) NSString *type;
@property(nonatomic, strong) NSString *url;
@property(nonatomic, strong) NSString *thumb;
@end

NS_ASSUME_NONNULL_END
